import React from 'react';
import {
    View,
    Text,
    Button,
    ProgressBarAndroid,
}from 'react-native';
var ProgressBar = require('ProgressBarAndroid');

export default class MyComponentScreen extends  React.Component{
    static navigationOptions={
        title:"组件学习",
    };
    render(){

        var progressBar=<ProgressBar styleAttr="Inverse"/>;

        return(
            <View>
                <Text>我是自定义组件页面</Text>
                <Button title="我是自定义按钮"/>
                <ProgressBarAndroid styleAttr='Inverse' color='red'/>
                <ProgressBarAndroid styleAttr='Horizontal' color='green'/>
                <ProgressBarAndroid styleAttr='Small' color='black'/>
                <ProgressBarAndroid styleAttr='Large' />
            </View>
        );
    }
}
